package com.hogae.capital.mapper;

import java.util.List;
import com.hogae.capital.domain.CapUserWithdrawalAccount;
import org.apache.ibatis.annotations.Param;

/**
 * 用户提现账户信息Mapper接口
 * 
 * @author hogae
 * @date 2021-02-26
 */
public interface CapUserWithdrawalAccountMapper 
{
    /**
     * 查询用户提现账户信息
     * 
     * @param id 用户提现账户信息ID
     * @return 用户提现账户信息
     */
    CapUserWithdrawalAccount selectCapUserWithdrawalAccountById(Long id);

    /**
     * 查询用户提现账户信息列表
     * 
     * @param capUserWithdrawalAccount 用户提现账户信息
     * @return 用户提现账户信息集合
     */
    List<CapUserWithdrawalAccount> selectCapUserWithdrawalAccountList(CapUserWithdrawalAccount capUserWithdrawalAccount);

    /**
     * 新增用户提现账户信息
     * 
     * @param capUserWithdrawalAccount 用户提现账户信息
     * @return 结果
     */
    int insertCapUserWithdrawalAccount(CapUserWithdrawalAccount capUserWithdrawalAccount);

    /**
     * 修改用户提现账户信息
     * 
     * @param capUserWithdrawalAccount 用户提现账户信息
     * @return 结果
     */
    int updateCapUserWithdrawalAccount(CapUserWithdrawalAccount capUserWithdrawalAccount);

    /**
     * 删除用户提现账户信息
     * 
     * @param id 用户提现账户信息ID
     * @return 结果
     */
    int deleteCapUserWithdrawalAccountById(Long id);

    /**
     * 批量删除用户提现账户信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCapUserWithdrawalAccountByIds(Long[] ids);

    /**
     * 获取用户提现账号信息
     * @param userId
     * @param accountType
     * @return
     */
    CapUserWithdrawalAccount selectAccountInfo(@Param("userId") Long userId, @Param("accountType")String accountType);
}
